/*
 * Powered By [rapid-framework]
 * Web Site: http://www.rapid-framework.org.cn
 * Google Code: http://code.google.com/p/rapid-framework/
 * Since 2008 - 2015
 */

package com.environment_pro.monitor.service;

import java.util.List;

import org.quartz.SchedulerException;

import com.environment_pro.monitor.model.TbSystemJob;
import com.environment_pro.monitor.util.PageInfo;
import com.environment_pro.monitor.util.PageHelper.Page;

/**
 * @author yangfeng 
 * @version 1.0
 * @since 1.0
 */

public interface TbSystemJobService extends BaseService{

	void save(TbSystemJob tbSystemJob);

	boolean update(TbSystemJob tbSystemJob);

	boolean delete(int id);

	TbSystemJob findById(int id);

	Page<TbSystemJob> findAll(PageInfo pageInfo, TbSystemJob tbSystemJob);
	
	void initSchedulerJob() throws SchedulerException ;
	
	boolean startJob(int id) throws SchedulerException;
	
	boolean stopJob(int id) throws SchedulerException;

}